package cn.bellychang.state.demo02;

/**
 * @author ChangLiang
 * @date 2020/4/14
 */
public class FireSwitch {

    private State state;

    public FireSwitch() {
        // 默认是关闭状态
        state = new OffState();
    }

    public void setState(State state) {
        this.state = state;
    }

    public void changeFireClockWise() {
        this.state.changeFireClockWise(this);
    }

    public void changeFireCounterClockWise() {
        this.state.changeFireCounterClockWise(this);
    }
}
